package com.ssn.visitor.company;

public class CTO implements Visitor {
    @Override
    public void visit(Engineer engineer) {
        System.out.println(engineer.name + " 的代码量为：" + engineer.getCodeLines());
    }

    @Override
    public void visit(Manager manager) {
        System.out.println(manager.name + " 的产品数量为：" + manager.getProducts());
    }
}
